home *** CD-ROM | disk | FTP | other *** search
/ 130 MIDI Tool Box / 130 MIDI Tool Box.iso / mpu401c / mpuget.c < prev    next >
C/C++ Source or Header  |  1986-11-02  |  483b  |  21 lines

  1. /* Copyright (C) 1986 by M. J. Shannon, Jr.
  2. ** Permission to distribute for non-commercial uses granted as long as this
  3. ** notice is retained.  Violators will be prosecuted.
  4. */
  5.  
  6. #include    "mpu.h"
  7.  
  8. /* int mpu_get():
  9. **    send the MPU a command which requires a single byte response, and return
  10. **    that response; timeouts are used, and we try to get the proper
  11. **    acknowledgement.
  12. */
  13.  
  14. int
  15. mpu_get(cmd)
  16. unsigned char cmd;
  17. {
  18.     mpu_put(cmd);
  19.     return ((int) mpu_dget());
  20. }
  21.